/*
 Creator: Kisamin Resident and copyright by her.  All rights reserved except those specifically set forth here:
 You may:
 	 Use these scripts in any project
	 Modify these scripts in any way you wish subject to:
	 		1. Retaining this set of comments
			2. Explicity commenting and showing any changes you might make
 You may NOT:
 	 License these scripts to someone else with restrictions differing from the above.
	 Charge a fee for the scripts themselves (although you may charge for an object that
	 		utilizes these scripts to add functionality)
	 Charge a fee for any "library" or "collection" of scripts that includes this script.

If you have questions about your rights under this coment and/or the Gnu CopyLeft, please request further information
and/or explicit permission from Kisamin Resident
*/

//$import CommandCodes.lslm();

integer	k_iCmdAnnounce	= 10000;			// Command code for link messages
integer	k_iCmdExplode	= 10001;			// Tell the warhead to explode
integer k_iCmdNewTarget = 10002;			// We've locked on to a new victim
integer k_iCmdSelfDestruct = 10003;			// We need to self -destruct either due to time or some other function.
integer	k_iCmdKill = 10004;					// Tell a damage script to kill someone

default {
	link_message (integer in_iFromPrim, integer in_iCode, string in_iMessage, key in_iKey) {
		if (in_iCode == k_iCmdAnnounce) {
			if (in_iKey == NULL_KEY)
				llSay (0, in_iMessage);
			else
				llRegionSayTo (in_iKey, 0, in_iMessage);
		} else if (in_iCode == k_iCmdNewTarget) {
			llOwnerSay ("Locking onto " + llKey2Name (in_iKey));
		}
	}
}
